home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / vmware-tools / poweroff-vm-default next >
Encoding:
Text File  |  2010-12-19  |  1.3 KB  |  33 lines

  1. #!/bin/sh
  2. ##########################################################
  3. # Copyright (C) 2001-2008 VMware, Inc. All rights reserved.
  4. #
  5. # This program is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU Lesser General Public License as published
  7. # by the Free Software Foundation version 2.1 and no later version.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11. # or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser GNU General Public
  12. # License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public License
  15. # along with this program; if not, write to the Free Software Foundation, Inc.,
  16. # 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
  17. #
  18. ##########################################################
  19.  
  20. ##########################################################################
  21. # DO NOT modify this file directly as it will be overwritten the next
  22. # time the VMware Tools are installed.
  23. ##########################################################################
  24.  
  25. echo `date` ": Executing '$0'"
  26.  
  27. scriptsdir="`dirname $0`/scripts/`basename $0`.d"
  28. if [ -d "$scriptsdir" ]; then
  29.     for scriptfile in "$scriptsdir"/*; do
  30.     [ -x "$scriptfile" ] && "$scriptfile" poweroff-vm
  31.     done
  32. fi
  33.